package com.hxw.sample.opengl30;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    private MyGLSurfaceView mGLSurfaceView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mGLSurfaceView = findViewById(R.id.glSurface);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();

        if (mGLSurfaceView != null){
            mGLSurfaceView.onDestroy();
        }
    }
}